From 2e56ad1686401d9b3871d3ac843b18cb2b064475 Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 19 Jun 2007 15:39:08 +0100 Subject: [PATCH] hvm svm: Log into 'xm dmesg' that SVM NPT is enabled. Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/svm/svm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index c26ebc4d1f..92b7fd95c8 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -957,7 +957,7 @@ static struct hvm_function_table svm_function_table = { .event_injection_faulted = svm_event_injection_faulted }; -void svm_npt_detect(void) +static void svm_npt_detect(void) { u32 eax, ebx, ecx, edx; @@ -1017,6 +1017,9 @@ int start_svm(struct cpuinfo_x86 *c) hvm_enable(&svm_function_table); + if ( opt_hap_enabled ) + printk("SVM: Nested paging enabled.\n"); + return 1; } -- 2.30.2